package com.example.demo.factory;

/**
 * @author : tx
 * @date : Created in 2024-04-12 9:57
 * @description :
 */
public class Phone implements Product{

    public void get(){
        System.out.println("这就是工厂方法测试");
    }


    public static void main(String[] args) {
        ProductFactory p = new PhoneFactory();
        Product phone = p.get("Phone");
        phone.get();
    }
}
